package org.hxyjs.entity;

import java.io.Serializable;

/**
 * @author 
 */
public class Carouselmap implements Serializable {
    private String cmno;

    private String nno;

    private Integer cmstate;

    private String cmimg;

    private static final long serialVersionUID = 1L;

    public String getCmno() {
        return cmno;
    }

    public void setCmno(String cmno) {
        this.cmno = cmno;
    }

    public String getNno() {
        return nno;
    }

    public void setNno(String nno) {
        this.nno = nno;
    }

    public Integer getCmstate() {
        return cmstate;
    }

    public void setCmstate(Integer cmstate) {
        this.cmstate = cmstate;
    }

    public String getCmimg() {
        return cmimg;
    }

    public void setCmimg(String cmimg) {
        this.cmimg = cmimg;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Carouselmap other = (Carouselmap) that;
        return (this.getCmno() == null ? other.getCmno() == null : this.getCmno().equals(other.getCmno()))
            && (this.getNno() == null ? other.getNno() == null : this.getNno().equals(other.getNno()))
            && (this.getCmstate() == null ? other.getCmstate() == null : this.getCmstate().equals(other.getCmstate()))
            && (this.getCmimg() == null ? other.getCmimg() == null : this.getCmimg().equals(other.getCmimg()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getCmno() == null) ? 0 : getCmno().hashCode());
        result = prime * result + ((getNno() == null) ? 0 : getNno().hashCode());
        result = prime * result + ((getCmstate() == null) ? 0 : getCmstate().hashCode());
        result = prime * result + ((getCmimg() == null) ? 0 : getCmimg().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", cmno=").append(cmno);
        sb.append(", nno=").append(nno);
        sb.append(", cmstate=").append(cmstate);
        sb.append(", cmimg=").append(cmimg);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}